package com.ruoyi.system.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.security.annotation.PreAuthorize;
import com.ruoyi.system.service.TbCommunTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/housemanager/commun")
public class TbCommunTypeController {

    @Autowired
    private TbCommunTypeService tbCommunTypeService;

    @PreAuthorize(hasPermi = "house:housemanager:commun:query")
    @GetMapping()
    public AjaxResult selectTbCommunType(){

        return AjaxResult.success(tbCommunTypeService.selectTbCommunType());
    }
}
